<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
  <head>
      <title>video:code:composite</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="nbdocs:/net/neilcsmith/praxis/live/help/docs/help.css" type="text/css">
  </head>
  <body>
    <h1>video:code:composite</h1>
    <p>Live coding component.</p>
    <p>Uses a 2D subset of the Processing API.</p>
    <h2>Ports</h2>
    <table border="1" cellpadding="5" cellspacing="0">
        <thead>
            <tr>
                <th>ID</th>
                <th>Type</th>
                <th>Direction</th>
                <th>Values</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b>in</b></td>
                <td>video</td>
                <td>in</td>
                <td></td>
                <td>Main video input.</td>
            </tr>
            <tr>
                <td><b>src</b></td>
                <td>video</td>
                <td>in</td>
                <td></td>
                <td>Additional video input. Can be referenced from code using the
                    <code>src</code> variable.</td>
            </tr>
            <tr>
                <td><b>out</b></td>
                <td>video</td>
                <td>out</td>
                <td></td>
                <td>Video output.</td>
            </tr>
            <tr>
                <td><b>p1 - p8</b></td>
                <td>control</td>
                <td>in</td>
                <td>any</td>
                <td>Parameters that can be read from code using <code>p(X)</code>.
                    Use <code>d(X) to get the parameter as a number.</code></td>
            </tr>
            <tr>
                <td><b>t1 - t4</b></td>
                <td>control</td>
                <td>in</td>
                <td></td>
                <td>Triggers that can be checked from code using <code>t(X)</code></td>
            </tr>
            <tr>
                <td><b>out-1 / out-2</b></td>
                <td>control</td>
                <td>out</td>
                <td></td>
                <td>Outputs that can be used from code.</td>
            </tr>
            
        </tbody>
    </table>
    <h2>Controls</h2>
     <table border="1" cellpadding="5" cellspacing="0">
        <thead>
            <tr>
                <th>ID</th>
                <th>Type</th>
                <th>Input</th>
                <th>Output</th>
                <th>Default</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b>code</b></td>
                <td>property</td>
                <td>string</td>
                <td></td>
                <td>{}</td>
                <td>Java class body.</td>
            </tr>
            <tr>
                <td><b>img1 - img4</b></td>
                <td>property</td>
                <td>resource or {}</td>
                <td></td>
                <td>{}</td>
                <td>Images files that can be reference from code using <code>img(X)</code>.</td>
            </tr>
            <tr>
                <td><b>p1 - p16</b></td>
                <td>property</td>
                <td>any</td>
                <td></td>
                <td>{}</td>
                <td>Parameters that can be read from code using <code>p(X)</code>.
                    Use <code>d(X) to get the parameter as a number.</code></td>
            </tr>
            <tr>
                <td><b>t1 - t4</b></td>
                <td>action</td>
                <td></td>
                <td></td>
                <td></td>
                <td>Triggers that can be checked from code using <code>t(X)</code></td>
            </tr>
        </tbody>
    </table>
  </body>
</html>
